/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: ServerResponseHandle.java
 * Author: ckj
 * Date: 2024/7/21 下午9:28
 * Description:
 * 用于处理服务器发来的消息
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.handle;

import com.bosssoft.issue.BaseIssue;
import com.bosssoft.issue.ServerResponseIssue;
import com.bosssoft.message.ServerMessage;


/**
 * @author ckj
 */
public class ServerResponseHandle implements BaseHandle{
    /**
     *
     * @author ckj
     * @date 2024/07/22 上午9:26
     * 处理
     */
    @Override
    public void handle(BaseIssue issue) {
        ServerResponseIssue serverResponseIssue = (ServerResponseIssue) issue;
        ServerMessage message = (ServerMessage) serverResponseIssue.getMessage();
        message.getContent().forEach(System.out::println);
    }
}